<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Rendered using the Haskell Html Library v0.2-->
<HTML
><HEAD
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"
><TITLE
>User</TITLE
><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"
><SCRIPT SRC="haddock.js" TYPE="text/javascript"
></SCRIPT
></HEAD
><BODY
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="topbar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "
></TD
><TD CLASS="title"
></TD
><TD CLASS="topbut"
><A HREF="index.html"
>Contents</A
></TD
><TD CLASS="topbut"
><A HREF="doc-index.html"
>Index</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="modulebar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><FONT SIZE="6"
>User</FONT
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Description</TD
></TR
><TR
><TD CLASS="doc"
>Module handling all interactions with the user.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Synopsis</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="#v%3AgameInfo"
>gameInfo</A
> :: <A HREF="Poker.html#t%3AGameState"
>GameState</A
> -&gt; IO ()</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AplayerInfo"
>playerInfo</A
> :: <A HREF="Player.html#t%3AT"
>T</A
> -&gt; [String] -&gt; IO ()</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApromptUser"
>promptUser</A
> :: IO <A HREF="Poker.html#t%3AAction"
>Action</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AprintHelp"
>printHelp</A
> :: IO ()</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AclearScreen"
>clearScreen</A
> :: IO ()</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AgetPlayers"
>getPlayers</A
> :: IO [<A HREF="Player.html#t%3AT"
>T</A
>]</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AnotifyDestitute"
>notifyDestitute</A
> :: [<A HREF="Player.html#t%3AT"
>T</A
>] -&gt; IO ()</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AendGame"
>endGame</A
> :: <A HREF="Poker.html#t%3AGameState"
>GameState</A
> -&gt; IO Bool</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Documentation</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AgameInfo"
></A
><B
>gameInfo</B
> :: <A HREF="Poker.html#t%3AGameState"
>GameState</A
> -&gt; IO ()</TD
></TR
><TR
><TD CLASS="doc"
>Print vital statistics about the game, like the contents of the pot,
  and recent actions.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AplayerInfo"
></A
><B
>playerInfo</B
> :: <A HREF="Player.html#t%3AT"
>T</A
> -&gt; [String] -&gt; IO ()</TD
></TR
><TR
><TD CLASS="doc"
>Print the user statistics seen at the beginning of their turn.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3ApromptUser"
></A
><B
>promptUser</B
> :: IO <A HREF="Poker.html#t%3AAction"
>Action</A
></TD
></TR
><TR
><TD CLASS="doc"
>Prompt the user to enter an action.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AprintHelp"
></A
><B
>printHelp</B
> :: IO ()</TD
></TR
><TR
><TD CLASS="doc"
>Displays the help text.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AclearScreen"
></A
><B
>clearScreen</B
> :: IO ()</TD
></TR
><TR
><TD CLASS="doc"
>Print enough newlines to clear the visible terminal.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AgetPlayers"
></A
><B
>getPlayers</B
> :: IO [<A HREF="Player.html#t%3AT"
>T</A
>]</TD
></TR
><TR
><TD CLASS="doc"
>Generate a new list of players from names supplied by the user.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AnotifyDestitute"
></A
><B
>notifyDestitute</B
> :: [<A HREF="Player.html#t%3AT"
>T</A
>] -&gt; IO ()</TD
></TR
><TR
><TD CLASS="doc"
>Notify players who are out of the game because they couldn't ante up.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AendGame"
></A
><B
>endGame</B
> :: <A HREF="Poker.html#t%3AGameState"
>GameState</A
> -&gt; IO Bool</TD
></TR
><TR
><TD CLASS="doc"
>Prints the end of round info and prompts the user to play again.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="botbar"
>Produced by <A HREF="http://www.haskell.org/haddock/"
>Haddock</A
> version 0.8</TD
></TR
></TABLE
></BODY
></HTML
>
